<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

/**
 * Description of View
 * 
 * @todo 
 * 
 * @author George Zeakis<zeageorge@google.com>
 * 
 */

define("VIEWS", "SOME FOLDER WITH VIEWS");

class View {
    
    function __construct() { }
    
    public function render($name, $include_HeaderAndFooter = false) {
        if ($include_HeaderAndFooter == true) {
            require VIEWS . 'header.php';
            require VIEWS . $name . '.php';
            require VIEWS . 'footer.php';
        } else {
            require VIEWS . $name . '.php';
        }
    }
}